//
//  FIDFMDBManager.h
//  RONGAO
//
//  Created by ZhangYeKun on 2017/2/27.
//  Copyright © 2017年 wei wang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h"
#import "NSObject+FIDProperty.h"
#import "DoorSystemModel.h"

extern NSString * const kRongGaoDataBaseName;
extern NSString * const kRongGaoCameraTableName;

@interface FIDFMDBManager : NSObject

+ (FMDatabase *)createSqliteWithName:(NSString *)name;

+ (BOOL)executeUpdateWithSqlstatement:(NSString *)sqlstatement;

/**
 timo专用

 @param sqlstatement 查询
 @param kClass model类
 @return 数组
 */
+ (NSMutableArray *)executeQueryWithSqlstatement:(NSString *)sqlstatement queryModel:(Class)kClass;

+ (void)updateDoorSystemModelInDatabase:(MyCamera *)dsModel;



/**
 疾风剑豪大招专用

 @param sqlstatement 数据库语句
 @return 数组
 */
+ (NSMutableArray *)executeQueryWithSqlstatementCustom:(NSString *)sqlstatement;

@end
